#include<bits/stdc++.h>
using namespace std;
const int MAXN = 1000;

class AdditionStrategy {
public:
	virtual void Calculate(string a, string b) = 0;
	virtual ~AdditionStrategy() {}
};

class SmallInteger :public AdditionStrategy {
public:
	virtual void Calculate(string a, string b) {
		cout << atoll(a.c_str()) + atoll(b.c_str()) << "\n";
		return;
	}
};

class LargeInteger :public AdditionStrategy {
	struct bigNum {
		bool neg;
		int len;
		int num[MAXN];
		bigNum() {
			len = 1;
			neg = false;
			memset(num, 0, sizeof(num));
		}
		void read(string s) {
			len = 1;
			neg = false;
			memset(num, 0, sizeof(num));
			for (int i = 0; i < s.size(); i++)
				num[i] = s[i] - '0';
			std::reverse(num, num + len);
			return;
		}
		void print()const {
			if (neg) putchar('-');
			for (int i = len - 1; i >= 0; i--) {
				putchar('0' + num[i]);
			}
		}
		bigNum operator + (const bigNum& that)const {
			bigNum ret;
			int tmp = 0;
			for (int i = 0; i < MAXN; i++) {
				tmp += this->num[i] + that.num[i];
				ret.num[i] = tmp % 10;
				tmp /= 10;
				if (ret.num[i]) ret.len = i + 1;
			}
			return ret;
		}
	}A, B;
public:
	virtual void Calculate(string a, string b) {
		A.read(a); B.read(b);
		(A + B).print();
		return;
	}
};

class Context {
private:
	AdditionStrategy* addStrategy;
public:
	Context(AdditionStrategy* Strategy) : addStrategy(Strategy) {};
	~Context() {
		delete addStrategy;
	}
	void executeStrategy(string a, string b) {
		return addStrategy->Calculate(a, b);
	}
};

int main() {
	ios::sync_with_stdio(false);
	string a, b;
	cin >> a >> b;
	if (a.size() > 18 || b.size() > 18) {
		Context* largeInteger = new Context(new LargeInteger());
		cout << "use large integer addition\n";
		largeInteger->executeStrategy(a, b);
		delete(largeInteger);
	}
	else {
		Context* smallInteger = new Context(new SmallInteger());
		cout << "use small integer addition\n";
		smallInteger->executeStrategy(a, b);
		delete(smallInteger);
	}
	return 0;
}